package com.happy.util;

import java.util.UUID;

/**
 * @Auther: lifeng
 * @Date: 2018/6/26 13:26
 * @Description:生成随机码工具类
 */
public class RandomUtil {
    /**
     * 生成前缀+32位编码 用作id
     *
     * @return string
     */
    public static String genaratedId(String prefix){
        String uuid  = prefix+UUID.randomUUID().toString().replaceAll("-","");
        return uuid;
    }
}
